package com.asktgapp.engineer.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.asktgapp.R;
import com.asktgapp.base.BaseFragment;
import com.asktgapp.user.activity.MainActivity;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * time:2018/1/4
 * Create By ZhaoKai
 * Email: dczk@foxmail.com
 * Description: 提现密码设置成功fragment
 */

public class FindWithDrawSuccessFragment extends BaseFragment {

    @InjectView(R.id.tv_back_home)
    TextView login;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        ViewGroup viewGroup = (ViewGroup) inflater.inflate(R.layout.fragment_find_withdraw_success, container, false);
        ButterKnife.inject(this, viewGroup);
        return super.onCreateView(inflater, viewGroup, savedInstanceState);
    }

    @Override
    protected void initView(View rootView) {
        getBaseActivity().setBackNavigationIcon();
        login.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                //跳转到首页 考虑下前面页面的finish
                startActivity(new Intent(getActivity(), MainActivity.class));
                getActivity().finish();
            }
        });
    }

    @Override
    public void loadData() {

    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.reset(this);
    }
}
